package com.tianshi.order.feign.fallback;


import com.tianshi.order.feign.client.ProductFeignClient;
import com.tianshi.vo.ProductVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class ProductFeignClientFallback implements ProductFeignClient {
    @Override
    public ResponseEntity<ProductVO> getProductByProductId(Long productId) {
        log.info("getProductById 调用商品服务失败，返回默认值");
        return null;
    }
}
